package com.joysuch.wwyt.mh.mapper;

import com.joysuch.wwyt.mh.entity.MhMajorHazardTaskRecordItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqw
 * @since 2022-05-24
 */
public interface MhMajorHazardTaskRecordItemMapper extends BaseMapper<MhMajorHazardTaskRecordItem> {

    List<MhMajorHazardTaskRecordItem> findByTaskIdAndUserId(@Param("taskId")Long taskId, @Param("userId")Long userId);

    List<MhMajorHazardTaskRecordItem> findByRecordIdAndResult(Long id, int result);

    List<MhMajorHazardTaskRecordItem> getItemsByTaskId(@Param("taskId")Long taskId);
}
